package grailsmodelviz

import com.uniandes.modelviewer.dummy.Doctor

class LookupModelsService {

    def serviceAddExampleDoctor() {
		def doc = new Doctor(first:"Julius",last:"Hibbert", degree:"MD",specialty:"General Medicine")
		
		// Add a city dynamically to this doctor
		doc["city"]="Springfield"
		
		// Saving it creates an instance of Doctor with the new field
		doc.save()
    }
	
	def serviceMethod() {
		Doctor.list() 
	}
}
